package com.java.pertar.logger.Controller;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LoggerTest {

    private static final Logger logger = LoggerFactory.getLogger(LoggerTest.class);

    @RequestMapping("/t1")
    public String t1() {

        logger.debug("t1");
        logger.info("t1");
        logger.warn("t1");
        logger.error("t1");
        System.out.println("t1");
        return "日志";

    }

}
